package common;

import java.io.Serializable;

public class EventMetadata implements Serializable{
	private static final long serialVersionUID = -3081379545718252217L;
	
	public static enum EventType{
		DOWNLOAD,
		REMOVE
	}
	
	private String relativePath;
	private Long lastModified;
	private EventType eventType;
	
	public EventMetadata(String relativePath, Long lastModified, EventType eventType){
		this.relativePath = relativePath;
		this.lastModified = lastModified;
		this.setEventType(eventType);
	}
	
	public String getRelativePath() {
		return relativePath;
	}
	
	public Long getLastModified() {
		return lastModified;
	}
	
	public EventType getEventType() {
		return eventType;
	}
	
	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}
	
	public void setLastModified(Long lastModified) {
		this.lastModified = lastModified;
	}

	public void setEventType(EventType eventType) {
		this.eventType = eventType;
	}
}
